package org.lex.progress;

import java.util.EventObject;

public class ProgressEvent extends EventObject {
	public ProgressEvent(Progress source) {
		super(source);
	}

	public Progress getSource() {
		return (Progress) super.getSource();
	}

	public long getMinimum() {
		return getSource().getMinimum();
	}

	public long getProgress() {
		return getSource().getProgress();
	}

	public long getMaximum() {
		return getSource().getMaximum();
	}

	public long elapsedTime() {
		return getSource().elapsedTime();
	}

	public Progress.Status getState() {
		return getSource().getStatus();
	}

	public String toString() {
		return getSource().toString();
	}
}
